package com.wisdytech.ccdserver.common.error;

import com.wisdytech.common.execption.BaseErrorCode;

/**
 * @author svolt
 */

public enum TraceErrorCode implements BaseErrorCode {

    TRACE_MAIN_CHAIN_ERROR("090100","批量查询的条件必须满足一致(PACK,模组,电芯，物料，极组)!"),
    TRACE_QUERY_TYPE_ERROR("090200","查询类型不正确{batch，alone}!"),
    QUERY_TYPE_NULL_ERROR("090300","查询类型不能为空!"),
    TRACE_EMPTY_FILE("090400","导入文件为空!"),
    TRACE_FILE_ERROR("090500","文件导入查询失败!"),
    TRACE_DATA_EMPTY("090600","文件数据为空!"),
    TRACE_TYPE_ERROR("090700","数据格式错误!"),
    TOKEN_ERROR("000000","token有效期过期，请再次查询!"),
    TRACE_DELETE_ERROR("090800","班组已排班,不可删除!");

    private String code;
    private String desc;

    private TraceErrorCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public void setDesc(String msg) {
        this.desc = msg;
    }
}
